<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
	*{
		padding: 0;
		margin: 0;
	}
	#redian{
		width: 500px;
		height: 160px;
		border: 3px solid black;
		margin: 0 auto;
		margin-top: 100px;
		overflow: hidden;
	}
	#redian ul li{
		list-style: none;
		width: 500px;
		height: 80px;
		line-height: 80px;
		text-align: center;
		font-size: 40px;
		font-weight: 800;
		font-family: arial;
		color: white;
	}
</style>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$(function(){

	setInterval(function(){
		$('#redian ul li').last().css('height','0');//将最后一个li的高度变为0
		$('#redian ul').prepend($('#redian ul li').last());//把最后一个li插入到ul第一个位置
		$('#redian ul li').first().animate({'height':'80px'},500);
	},2000)

})
</script>
</head>

<body>

	<div id="redian">
		<ul>
			<li style="background:green;">1</li>
			<li style="background:purple;">2</li>
			<li style="background:orange;">3</li>
			<li style="background:grey;">4</li>
			<li style="background:blue;">5</li>
		</ul>
	</div>

</body>
</html>
